﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessObjects.BusinessRules;

namespace BusinessObjects
{
    public class Restaurants : BusinessObject
    {
        public Restaurants()
        {
            AddRule(new ValidateRequired("RestaurantID"));

            AddRule(new ValidateRequired("RestauranCode"));
            AddRule(new ValidateLength("RestauranCode", 0, 20));

            AddRule(new ValidateRequired("RestaurantName"));
            AddRule(new ValidateLength("RestaurantName", 0, 255));
        }

        public Restaurants(string restaurantId, string restaurantCode, string restaurantName, string address, string phoneNumber,
                            string fax, string email, string website, string taxCode, bool isAgencies, bool isActive)
            : this()
        {
            RestaurantID = restaurantId;
            RestaurantCode = restaurantCode;
            RestaurantName = restaurantName;
            Address = address;
            PhoneNumber = phoneNumber;
            Fax = fax;
            Email = email;
            Website = website;
            TaxCode = taxCode;
            IsAgencies = isAgencies;
            IsActive = isActive;
        }

        public string RestaurantID { get; set; }

        public string RestaurantCode { get; set; }

        public string RestaurantName { get; set; }

        public string Address { get; set; }

        public string PhoneNumber { get; set; }

        public string Fax { get; set; }

        public string Email { get; set; }

        public string Website { get; set; }

        public string TaxCode { get; set; }

        public bool IsAgencies { get; set; }

        public bool IsActive { get; set; }
    }
}
